<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>查詢所有用戶</title>
</head>
<body>
<table border="1">
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>邮箱</td>
        <td>操作</td>
    </tr>
    <tr th:each="u : ${ulist}">
        <td th:text="${u.id}"></td>
        <td th:text="${u.name}"></td>
        <td th:text="${u.age}"></td>
        <td th:text="${u.email}"></td>
        <td>
            <!--<a th:href="@{/user/details/}+${u.id}">详情</a>-->
            <a th:href="@{'/user/details/'+${u.id}}">详情2</a>
        </td>
    </tr>
</table>
</body>
</html>